<template>
    <div id="OrdersTitle">
        <v-details :inputConfig="inputConfig" :detailData="inputData" :rules="rules" ref="input"></v-details>
    </div>
</template>

<script>
    import details from 'commons/Detail'
    import baseMixin from "@/mixins/BaseMixin";

    export default {
        props: {
            inputData: {
                type: Object,
            }
        },
        mixins: [baseMixin],
        name: "",
        data() {
            return {
                rules: {
                    sso_name: [
                        {required: true, trigger: 'blur'},
                    ]
                },
            }
        },
        computed: {
            inputConfig() {
                return [
                    [
                        {
                            type: "select",
                            label: this.$t('bill.activity'),
                            props: "activity_id",
                            options: this.getOptions("getSelectCode/ACTIVITY_ID/ACTIVITY_DESC/BIC_ACTIVITY/1=1"),
                            disabled: true
                        },
                        {
                            type: "select",
                            label: this.$t('bill.wareHouse'),
                            props: "facility_id",
                            options: this.getOptions("getSelectCode/FACILITY_ID/NAME/BIC_FACILITY/1=1"),
                            disabled: true
                        },
                        {
                            type: "input",
                            label: this.$t('bill.orderNo'),
                            props: "order_no",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: this.$t('bill.orderType'),
                            props: "order_type",
                            disabled: true
                        }
                    ],
                    [
                        {
                            type: "input",
                            label: this.$t('bill.customer'),
                            props: "cust_code",
                            disabled: true
                        },
                        {
                            type: "date",
                            label: "完成日期",
                            props: "complete_date",
                            disabled: true
                        },
                        {
                            type: "date",
                            label: "开账单日期",
                            props: "billed_date",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: "总收费金额",
                            props: "tot_charge_amt",
                            disabled: true
                        },
                    ],
                    [
                        {
                            type: "input",
                            label: "费用数",
                            props: "no_of_charges",
                            disabled: true
                        },
                        {
                            type: "select",
                            label: "是否已应用任何最小计费金额",
                            props: "min_applied",
                            options: this.getOptions("codelkup/ISCLOSE"),
                            disabled: true
                        },
                        {
                            type: "select",
                            label: "是否已应用任何加价项",
                            props: "mkup_applied",
                            options: this.getOptions("codelkup/ISCLOSE"),
                            disabled: true
                        },
                        {
                            type: "select",
                            label: "是否存在任何零收费",
                            props: "zero_charges",
                            options: this.getOptions("codelkup/ISCLOSE"),
                            disabled: true
                        },
                        {
                            type: "input",
                            label: "总收费金额",
                            props: "tot_charge_amt",
                            disabled: true
                        },
                    ]
                ]
            }
        },
        methods: {},
        mounted() {
        },
        watch: {},
        components: {
            'v-details': details
        }
    }
</script>

<style scoped>

</style>
